import wepy from 'wepy';
export default class GoPages extends wepy.mixin {
  methods = {
    goEdit(id) {
      wepy.navigateTo({
        url: `./add-card?mycardid=${id}&isEdit=1`
      });
    },

    goCode(id, code, name, avatar, uid) {
      wepy.navigateTo({
        url: `./code?id=${id}&qr_code=${code}&name=${name}&avatar=${avatar}&ouid=${uid}`
      });
    },

    goGroup(id, groupName, type, uid) {
      wepy.navigateTo({
        url: `./group?id=${id}&groupName=${groupName}&type=${type}&ouid=${uid}`
      });
    },

    goMark(id, type, name) {
      wepy.navigateTo({
        url: `./mark/mark-list?id=${id}&state=${type}&name=${name}`
      });
    },

    goNotice(id, type) {
      wepy.navigateTo({
        url: `./notice/notice-list?id=${id}&state=${type}`
      });
    },

    goDetail(id, type, name) {
      wepy.navigateTo({
        url: `./detail?id=${id}&type=${type}&ouid=${name}`
      });
    }
  }
}